﻿using System.Windows.Forms;
using UI.Lib;

namespace UI.Invoice
{
    public partial class FrmTic1a00Edit : UI.ParentForm.BaseEdit
    {
        public FrmTic1a00Edit(string action, string text, string key)
            : base(action)
        {
            InitializeComponent();

            this.Text = text;
            this.key = key;
            //回写的方法
            this.SaveCallFuntion = "Tic1a00Manager$SaveEditData"; //保存的方法

            {
                LoadData();
            }

            this.Size = base.LstWindow;
        }

        public override bool BeforePopWin(string name, ref string where, ref string[] others)
        {
            if ("substatue" == name)
            {
                where = " valuecode in ('1', '4') ";
            }

            return true;
        }

        //加载修改数据
        private void LoadData()
        {
            base.LoadEditData(null, string.Format(" subid ='{0}' ", this.key));
        }
    }
}